package com.item.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public class Picture implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer pictureId;

    @NonNull
    private String imagePath;

    @NonNull
    private Integer state;

    public Picture(@NonNull String imagePath) {
        this.imagePath = imagePath;
    }
}
